﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

namespace UserAuthotication
{
    public partial class LoginPage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.CacheControl = "no-cache";
            Response.Cache.SetCacheability(HttpCacheability.NoCache);
            Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1));
            Response.Cache.SetNoStore();
            //Response.ExpiresAbsolute = DateTime.Now;
            //Response.AddHeader("Pragma", "no-cache");
            //Response.AddHeader("Pragma", "no-store");
            //Response.AddHeader("cache-control", "no-cache");
            //Response.Expires = -1;

        }
        protected void LogOut_Clicked(object sender, EventArgs e) 
        {
            FormsAuthentication.SignOut();
            Response.Redirect("Home.aspx");
        }
    }
}